24#include "yaml-cpp/yaml.h"
100 mutable std::mutex mut_odometry_;
118 throw std::runtime_error(
"MotionProvider::getOrder: not a motion provider, doesn't have order");
125 throw std::runtime_error(
"MotionProvider::getOrder: not a motion provider, cannot have order");
Definition: motion_provider.h:33
virtual ~MotionProvider()
Destructor for the MotionProvider class.
Definition: motion_provider.h:108
virtual VectorComposite getState(const TimeStamp &_ts, StateKeys _keys="") const =0
Get the state at a specific time.
void setOdometry(const VectorComposite &)
Set the odometry.
Definition: motion_provider.cpp:57
virtual TimeStamp getTimeStamp() const =0
Get the timestamp of the last motion.
void addTypes(const TypeComposite &_state_types)
Add types to the motion provider.
Definition: motion_provider.cpp:32
VectorComposite getOdometry() const
Get the odometry.
Definition: motion_provider.cpp:85
unsigned int state_provider_order_
If a state provider, the order to be used by the problem.
Definition: motion_provider.h:95
virtual VectorComposite getState(StateKeys _keys="") const =0
Get the state at the last time.
unsigned int getOrder() const
Get the order of the state provider.
Definition: motion_provider.h:115
MotionProvider(const TypeComposite &_state_types, const YAML::Node &_params)
Constructor for the MotionProvider class.
Definition: motion_provider.cpp:25
bool isStateProvider() const
Check if the motion provider is configured as a state provider.
Definition: motion_provider.h:110
bool is_state_provider_
Whether this motion provider is configured as a state provider.
Definition: motion_provider.h:94
void setOrder(unsigned int)
Set the order of the state provider.
Definition: motion_provider.h:122
TimeStamp implements basic functionalities for time stamps.
Definition: time_stamp.h:39
Definition: vector_composite.h:27
Definition: capture_base.h:23
std::string StateKeys
Definition: composite.h:31
WOLF_PTR_TYPEDEFS(CaptureLandmarksExternal)